package LeetCode;

/**
 * @Author Kechelle
 * @Date 2020/9/21 16:42
 * @Version 1.0
 */
public class Code70 {
    public static int climbStairs(int n){
        int num1 = 1;
        int num2 = 1;
        for (int i=0;i<n-1;i++){
            num2 = num1 + num2;
            num1 = num2 - num1;
        }
        return num2;
    }

    public static void main(String[] args) {
        System.out.println(Code70.climbStairs(3));
    }
}
